//
//  HYCDayOrNightController.m
//  FamilyTravel
//
//  Created by dllo on 15/10/31.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "HYCDayOrNightController.h"
#import "HYCHeadDocument.h"
@interface HYCDayOrNightController ()

@end

@implementation HYCDayOrNightController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    if ([HYCSingleton shareSingleton].isNight) {
        [self setNightModel];
    }else {
        [self setLightModel];
    }

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setLightModel) name:@"NightDay" object:nil];
    
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(setNightModel) name:@"LightDay" object:nil];
    
    
    
}

- (void)setLightModel {
    
    [HYCNightManager setColorWIthView:self.view];

}

- (void)setNightModel {
    
    [HYCNightManager setColorWIthView:self.view];
    
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
